package com.liukh.obwiki.req;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("分页查询参数")
public class PageReq {
    @NotNull(message = "【页码】不能为空")
    @ApiModelProperty("页码")
    private int page;

    @NotNull(message = "【每页条数】不能为空")
    @Max(value = 1000, message = "【每页条数】不能超过1000")
    @ApiModelProperty("每页条数")
    private int size;
}
